import logging,yagmail
def mail_send(filepath):
    mail=yagmail.SMTP(user="1641759621@qq.com",password="cypkpyfkayvfbcjh",host="smtp.qq.com")
    mail.send(to="1641759621@qq.com",subject="维度电商系统接口测试报告",contents="查收一下",attachments=filepath)
def log_set():
    logging.basicConfig(filename="log.log",format="%(message)s",filemode="w",level=logging.DEBUG,datefmt="baogao")